// import axios from "axios"
import axios from "../views/api/index";
//最新数据
export const login = (params) => {
    return axios.post("/user/login", params);
};
export const getCode = (params) => {
    return axios.get(`/user/code/${params.phone}`, {});
};
export const register = (params) => {
    return axios.post("/user/register", params);
};
export const userInfo = (params) => {
    return axios.get("/user/detail", params);
};
export const withdrawal = (params) => {
    return axios.get("/withdrawal/findPage?pageNum=1&pageSize=500", {});
};
export const invite = (params) => {
    return axios.get("invite/findPage?pageNum=1&pageSize=500", {});
};
export const tb = (params) => {
    return axios.post("/withdrawal/add", params);
};
/*

export const getGfpList = (params) => {
    return axios.post("/query", params);
};
export const getGfpState = (params) => {
    return axios.post("/query", params, {hideLoading: true});
};
*/



